*{
    margin: 0;
    padding: 0;
}
body{
    background-color:#F5F5F5;

}
.header{
    width: 100%;
    height: 56px;
    line-height: 56px;
    background-color:#3b3a3f;
    font-size: 18px;
    text-align: center;
    color: #fff;
    font-weight: bold;
}
.main{
    overflow-y: scroll;
    padding: 20px;
    box-sizing: border-box;
    position: fixed;
    height: calc(100% - 108px);
    max-height: calc(100% - 108px);

}
.chat-container {
    margin-bottom: 20px;
}
.chat-container>img{
    width: 40px;
    border-radius: 50%;
}
.chat-container>*{
    float: left;
}
.chat-container::after{
    content: "";
    display:block;
    clear: both;
}
.chat-container.avatar-chat>*{
    float: right;
}

.chat-txt{
    max-width: 251px;
    padding: 8px;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #d8d8d8;
    color: #333;
    border-radius: 6px;
    margin-left: 10px;
}
.chat-container.avatar-chat>.chat-txt{
    /* max-width: 251px;
    padding: 8px;
    box-sizing: border-box;
    background-color: #fff;
    border: 1px solid #d8d8d8;
    color: #333;
    border-radius: 6px; */
    background-color:#98e855;
    margin-right: 10px;
    position: relative;
}
.chat-container.avatar-chat>.chat-txt::after{
    position: absolute;
    content: "";
    width: 0;
    border: 6px solid transparent;
    border-left-color: #98e855;
    right: -12px;
    margin-top: 5px;
}




.footer{
    position: absolute;
    left: 0;
    bottom: 0;
    background-color:#ebebeb;
    height:56px;
    line-height: 56px;
    width: 100%;
    text-align: center;
    box-shadow: 0px -2px 5px #d8d8d8;
}
.footer .input-txt{
    width: 270px;
    height: 36px;
    border-radius: 18px;
    border: 1px solid #d8d8d8;
    text-indent: 10px;
    outline: none;
}
.footer .send-btn{
    width: 54px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    display: inline-block;
    background-color:#02cb0b;
    color: #fff;
    border-radius: 5px;
}